package sg.edu.nus.iss.billing.dao;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import sg.edu.nus.iss.billing.model.account.Account;
import sg.edu.nus.iss.billing.model.bill.BillingPeriod;
import sg.edu.nus.iss.billing.model.transaction.ServiceTransaction;
import sg.edu.nus.iss.billing.model.transaction.ServiceTransactionType;

/**
 * @author Thurien, HeeLing, YinNi
 *
 */
public class MockedTransactionDAO {
	
	public static List<ServiceTransaction> getMobileIDDTransaction(Account account, BillingPeriod period) {
		ArrayList<ServiceTransaction> iddTransactions= new ArrayList<ServiceTransaction>();;
		Calendar calander = Calendar.getInstance();

		calander.set(period.getBillingYear(), period.getBillingMonth().getNumber(), 2, 11, 12);
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 10, calander.getTime()));
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 10, calander.getTime()));
		calander.set(period.getBillingYear(), period.getBillingMonth().getNumber(), 2, 10, 12);
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 20, calander.getTime()));
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 10, calander.getTime()));
		calander.set(period.getBillingYear(), period.getBillingMonth().getNumber(), 2, 14, 12);
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 30, calander.getTime()));
		iddTransactions.add(new ServiceTransaction(account.getAccountNo(), ServiceTransactionType.mIDD, 10, calander.getTime()));
		calander.set(period.getBillingYear(), period.getBillingMonth().getNumber(), 2, 14, 16);
		iddTransactions.add(new ServiceTransaction(account.getAccountNo() , ServiceTransactionType.mIDD, 10, calander.getTime()));
		return iddTransactions;
	}

}
